package com.zhongyu.comm.api;

import com.zhongyu.comm.pojo.ItemType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ItemTypeApi {

    @RequestMapping("/itemTypeApi/findByKey")
    List<ItemType> findByKey();

    @RequestMapping("/itemTypeApi/findByLevel")
    List<ItemType> findByLevel1();

    @RequestMapping("/itemTypeApi/findByLevel2")
    List<ItemType> findByLevel2();

    @RequestMapping("/itemTypeApi/findAll")
    List<ItemType> findAll();

    @RequestMapping("/itemTypeApi/findByParent")
    List<ItemType>findByParent(@RequestParam("parent")Integer parent);
}
